package org.example.dao.impl;

import org.example.dao.LogDao;
import org.example.entity.Log;
import lombok.Data;

import java.sql.Connection;

@Data
public class LogDaoImpl implements LogDao {
    @Override
    public int addLog(Connection conn,Log log) {
        String sql = "INSERT INTO log VALUES(NULL,?,?)";
        return DBUtil.executeSqlByTran(conn,sql,log.getLogDesc(),log.getOperator());
    }
}
